from llama_index.core import PromptTemplate

template = (
    "We have provided context information below. \n"
    "---------------------\n"
    "{context_str}"
    "\n---------------------\n"
    "Given this information, please answer the question: {query_str}\n"
)
qa_template = PromptTemplate(template)
prompt = qa_template.format(context_str='李大长依靠捡牛粪发家致富', query_str='李大长是如何成功的')
print(prompt)
